package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class IdentityColumnSpecification {

    private int beginIndex;
    private int endIndex;
    private boolean always;
    private boolean byDefault;
    private CommonSequenceGeneratorOptions commonSequenceGeneratorOptions;

    public IdentityColumnSpecification(int beginIndex,
                                       int endIndex,
                                       boolean always,
                                       boolean byDefault,
                                       CommonSequenceGeneratorOptions commonSequenceGeneratorOptions) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.always = always;
        this.byDefault = byDefault;
        this.commonSequenceGeneratorOptions = commonSequenceGeneratorOptions;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public boolean isAlways() {
        return always;
    }

    public boolean isByDefault() {
        return byDefault;
    }

    public CommonSequenceGeneratorOptions getCommonSequenceGeneratorOptions() {
        return commonSequenceGeneratorOptions;
    }

}
